import {ElNotification} from "element-plus";

const msg = (t: string, m: string) => {
    if (t == 's'){
        ElNotification({
            title: '成功！',
            message: m,
            type: 'success',
          })
    }else {
        ElNotification({
            title: '失败！',
            message: m,
            type: 'error',
          })
    }
}

export default msg